package com.xt.purchasingsystem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xt.purchasingsystem.dto.CarGoDto;
import com.xt.purchasingsystem.dto.ReleaseCargoDto;
import com.xt.purchasingsystem.model.ReleaseCargo;
import com.xt.purchasingsystem.utils.Result;
import com.xt.purchasingsystem.utils.Result;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yhp
 * @since 2020-05-31
 */
public interface ReleaseCargoService extends IService<ReleaseCargo> {
    /**
     * 添加放货登记及其明细的接口
     * @param releaseCargoDto
     * @return
     */
    Result saveReleaseCargoAndDetails(ReleaseCargoDto releaseCargoDto);

    Result qualityInspectionResults(Integer currNo, Integer pageSize);
    /**
     * 分页查询所有未审核的放货登记及其明细的接口
     * @param currNo
     * @param pageSize
     * @return
     */
    Result getAllReleaseCargoAndDetailsIsNoCheck(Integer currNo, Integer pageSize);

    Result checkReleaseCargAndDetails(ReleaseCargoDto releaseCargoDto);
}
